package com.hit.RuningGirl.sprite;

import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.physics.box2d.Body;
import com.hit.RuningGirl.main.Yelling;

/**
 * 和火焰精灵
 * Created by LXM on 2017-06-28.
 */

public class Flame extends GameSprite {

    private Texture tex;

    public Flame(Body body) {
        super(body);
        tex = Yelling.assetManager.get("images/flame.png");
        TextureRegion[] region = TextureRegion.split(tex, 32, 32)[0];
        setAnimation(region, 1 / 8f);
        width = region[0].getRegionWidth();
        height = region[0].getRegionHeight();


    }
}